
function save() {
    let data = new FormData();
    data.append("title",$("#title").val());
    data.append("href",$("#href").val());
    data.append("status", $("input:radio[name='status']:checked").val());
    data.append("contentOne",$("#contentOne").val());
    data.append("contentTwo",$("#contentTwo").val());
    data.append("img", $("#img")[0].files[0]);
    let result = myImgAjax("/adminFile/hr/add",data,"post");
    if(result.result == "success"){
        alert("新增成功！");
    }else{
        alert("新增失败！");
    }
}
//返回用户查询结果页面
function goBack() {
    $('.right').load('/html/admin/hr/hrManage.html');
}
